package test
{
	import com.greensock.loading.ImageLoader;
	
	import flash.display.BitmapData;
	import flash.display.Sprite;
	import flash.geom.Rectangle;
	import flash.utils.ByteArray;
	import flash.utils.setTimeout;
	
	public class TestBitmap extends Sprite
	{
		public function TestBitmap()
		{
			super();
			 
			
			
			testImageLoader();
			 
		}
		
		private function testBitmapData():void
		{
			var bitmapdata:BitmapData = new BitmapData(1,1,true,0xffffff);
			var array:ByteArray = bitmapdata.getPixels(new Rectangle(0,0,1,1));
			
			trace(array.length);
			trace(0xff)
			trace(array[1]+array[2]+array[3]);
			
			var s:ByteArray = new ByteArray();
			s.writeInt(0x1fffffff);
			s.position=0;
			trace(s.length,s.readInt());
			
		}
		
		private function testImageLoader():void
		{
			new ImageLoader(null);
 
			
		}
	}
}